package cn.col.gszf.model;

import cn.col.gszf.pojo.Vote;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description 频道DTO
 * @Author: wanghong
 * @Date: 2024/6/17
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChannelDTO implements Serializable {

    private Integer id;

    /*
     * 频道名称
     * */
    private String title;

    /*
     * 频道简介
     * */
    private String info;

    /*
     * 频道下投票实体
     * */
    private List<Vote> votes;


    /*
     * 总投票人数
     * */
    private Integer votingNum;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    public ChannelDTO(String title) {
        this.title = title;
    }
}
